﻿<Page
    x:Class="TT.CIT.Configuracao"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:TT.CIT"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Unloaded="Page_Unloaded">
    <Page.BottomAppBar>
        <CommandBar>
            <AppBarButton Icon="Cancel" Label="Cancelar" Click="AppBarButton_Click"/>
        </CommandBar>
    </Page.BottomAppBar>

    <Grid x:Name="LayoutRoot">

        <Grid.ChildrenTransitions>
            <TransitionCollection>
                <EntranceThemeTransition/>
            </TransitionCollection>
        </Grid.ChildrenTransitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Image x:Name="Logo" HorizontalAlignment="Left" Height="54" Margin="26,10,0,0" VerticalAlignment="Top" Width="135" Source="Assets/CIT Logo.fw.png" Stretch="UniformToFill">
            <Image.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </Image.Transitions>
        </Image>
        <Image x:Name="TimeTracking" HorizontalAlignment="Left" Height="30" Margin="26,69,0,0" VerticalAlignment="Top" Width="193" Source="Assets/Time Tracking.fw.png" Stretch="UniformToFill">
            <Image.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </Image.Transitions>
        </Image>
        <ToggleSwitch x:Name="NFC" HorizontalAlignment="Center" Header="Chekin por tags NFC" Margin="0,22,0,0" Grid.Row="1" VerticalAlignment="Top" OffContent="Desligado" OnContent="Ligado" Width="330" IsOn="True" Toggled="NFC_Toggled"/>
        <ToggleSwitch x:Name="GPS" HorizontalAlignment="Center" Header="Cerca de alerta pelo GPS" Margin="0,93,0,0" Grid.Row="1" VerticalAlignment="Top" OffContent="Desligado" OnContent="Ligado" Width="330" Toggled="GPS_Toggled"/>
        <StackPanel x:Name="LocaisGPS" HorizontalAlignment="Left" Height="219" Margin="52,154,0,0" Grid.Row="1" VerticalAlignment="Top" Width="87" Visibility="Collapsed">
            <StackPanel.ChildrenTransitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </StackPanel.ChildrenTransitions>
            <StackPanel.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </StackPanel.Transitions>
            <RadioButton x:Name="Predio9" Content="9" HorizontalAlignment="Left" VerticalAlignment="Stretch" GroupName="Predio" IsChecked="True" Margin="0" Checked="Predio9_Checked" Width="77"  />
            <RadioButton x:Name="Predio16" Content="16" HorizontalAlignment="Left" VerticalAlignment="Stretch" GroupName="Predio" Width="168" Checked="Predio16_Checked"/>
            <RadioButton x:Name="Predio23A" Content="23A" HorizontalAlignment="Left" VerticalAlignment="Stretch" GroupName="Predio" Checked="Predio23A_Checked" Width="168" />
            <RadioButton x:Name="Predio23B" Content="23B" HorizontalAlignment="Left" VerticalAlignment="Stretch" GroupName="Predio" Checked="Predio23B_Checked" Width="168" Margin="0,0,-81.333,0" />
        </StackPanel>
        <Button Content="Gravar tag NFC" HorizontalAlignment="Center" Margin="0,401,0,-2" Grid.Row="1" VerticalAlignment="Top" Width="187" Click="Button_Click"/>
        <StackPanel x:Name="HorarioGPS" Height="156" Margin="189,184.833,0,0" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="185" Visibility="Collapsed">
            <StackPanel.ChildrenTransitions>
                <TransitionCollection>
                    <EntranceThemeTransition/>
                </TransitionCollection>
            </StackPanel.ChildrenTransitions>
            <TextBlock TextWrapping="Wrap" Text="Horário Entrada" SelectionChanged="TextBlock_SelectionChanged" FontFamily="Segoe WP Semibold" FontSize="16"/>
            <TimePicker x:Name="Entrada" ClockIdentifier="24HourClock" Margin="0" HorizontalAlignment="Center" Time="8:0:0"/>
            <TextBlock TextWrapping="Wrap" Text="Horário Saída" SelectionChanged="TextBlock_SelectionChanged" FontFamily="Segoe WP Semibold" FontSize="16"/>
            <TimePicker x:Name="Saida" ClockIdentifier="24HourClock" Margin="38,0" HorizontalAlignment="Center" Time="17:0:0"/>
        </StackPanel>
        <TextBlock x:Name="StatusTag" HorizontalAlignment="Left" Margin="26,387,0,0" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Top" FontFamily="Segoe WP Semibold" FontSize="18" Width="341" TextAlignment="Center"/>
        <!-- Title Panel -->

        <!--TODO: Content should be placed within the following grid-->
    </Grid>
</Page>
